import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import ElementUI from 'element-ui'
import md5 from 'js-md5';
import animate from 'animate.css'
import './styles.scss'
import server from './request/server.js'
import api from './request/api.js' // 导入api接口
import VueParticles from 'vue-particles' 
import echarts from 'echarts'
import VueQriously from 'vue-qriously'

Vue.use(VueParticles)
Vue.use(ElementUI)
Vue.prototype.$echarts = echarts
Vue.prototype.$http = server
Vue.prototype.$api = api
Vue.prototype.$md5 = md5
Vue.use(animate)
Vue.use(VueQriously)

Vue.config.productionTip = false

router.beforeEach((to, from, next) => {
  window.document.title = to.name;
  next()
})

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
